package com.lingjtx.order.config;

import com.lingjtx.common.thread.config.ObjectPoolTemplateConfig;
import com.lingjtx.common.thread.pooling.ObjectPoolTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.net.http.HttpClient;

@Configuration
public class OrderConfig {

    @Bean("httpObjectPoolTemplate")
    public ObjectPoolTemplate<HttpClient> httpObjectPoolTemplate(ObjectPoolTemplateConfig config) {
        return config.httpObjectPoolTemplate();
    }
}
